package com.qf.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created by IntelliJ IDEA.
 * User: dong
 * Date: 2020/3/13
 */
public class SpringSecurityUtil {

    /**
     * 根据明文 生成密文
     * @param password
     * @return
     */
    public static String getEncondepassword(String password){
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        return encoder.encode(password);
    }
}
